<?php
class User extends AppModel {

	var $name = 'User';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'Group' => array('className' => 'Group',
								'foreignKey' => 'group_id'),
	);

	var $hasOne = array(
			'Profile' => array('className' => 'Profile',
								'foreignKey' => 'user_id'),
	);

	var $hasMany = array(
			'Event' => array('className' => 'Event',
								'foreignKey' => 'user_id'),
			'Page' => array('className' => 'Page',
								'foreignKey' => 'user_id'),
			'Post' => array('className' => 'Post',
								'foreignKey' => 'user_id'),
			'Comment' => array('className' => 'Comment',
								'foreignKey' => 'user_id'),
	);

}
?>